#!/bin/bash
[ "$(id -u)" == "0" ] && alias sudo=

sudo apt update
sudo apt install -y curl # 用于下载 repo 命令
sudo apt install -y git git-lfs
sudo apt install -y python3 python3-pip
sudo apt install -y libncurses5-dev  # 后续的 menuconfig 命令依赖这个库
ln -s /usr/bin/python3 /usr/bin/python
